﻿using System;
namespace CalculationCore.UX
{
    public class BinaryTree
    {
        public string inf;
        public BinaryTree Left;
        public BinaryTree Right;

        public BinaryTree()
        {
            inf = "";
            Right = null;
            Left = null;
        }

        public BinaryTree(string s)
        {
            inf = s;
            Right = null;
            Left = null;
        }
        override public string ToString()
        {
            return "(" + this.Left + "" + this.inf + "" + this.Right + ")";
        }
    }
}